package com.demo.minicat;

/**
 * servlet接口规范
 * @author: lipan
 * @date: 2021/10/1 10:41
 */

public interface Servlet {

    //初始化
  default   void init() throws Exception{
      System.out.println("...servlet init...");
  }


    //销毁
  default   void destory() throws Exception{
      System.out.println("...servlet destory...");
  }

    //处理请求 提供服务
    void service(Request request,Response response) throws Exception;
}
